<%--
  Created by IntelliJ IDEA.
  User: hongcy
  Date: 16-3-20
  Time: 下午9:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ include file="/include/taglib.jsp" %>
<div style="padding:20px 0px;">
    <form method="post" action="${ctx}/mulanweb/admin/admin_user/save" id="ff">
        <input type="hidden" value="${param.adminId}" name="adminId" id="adminId"/>
        <table cellspacing="5" style="margin: 0 auto">
            <tr>
                <td>用户名:</td>
                <td><input type="text" name="username" class="easyui-textbox" id="username"
                           data-options="required:true,validType:{length:[1,15]}" style="width: 200px;" value="${param.username}"/></td>
            </tr>
            <tr>
                <td>密码:</td>
                <td><input type="password" name="password" class="easyui-textbox" id="password"
                           data-options="required:true,validType:{length:[6,20]}" style="width: 200px;"/></td>
            </tr>
            <tr id="parentSeller">
                <td>联系电话:</td>
                <td><input type="text" name="mobile" class="easyui-textbox" id="mobile"
                           data-options="validType:{length:[11,11]}" style="width: 200px;" value="${param.mobile}"/></td>
            </tr>
        </table>
    </form>
</div>
<script type="text/javascript">
    $(function(){
        var adminId = $('#adminId').val();
        if(adminId){
            $('#ff').attr('action','${ctx}/mulanweb/admin/admin_user/update');
            $('#username').textbox({editable:false});
        }
    })
</script>
